import request from "@/utils/request"

const perfix = "/class"


// 班级查询 post
export const getList = (data) => {
  return request({
    url: `${perfix}/list`,
    method: "post",
    data
  })
}

// 添加班级
export const addClass = (data) => {
  return request({
    url: `${perfix}/save`,
    method: 'put',
    data
  })
}

//修改班级
export const updateClass = (data) => {
  return request({
    url: `${perfix}/update`,
    method: 'post',
    data
  })
}


// 删除班级
export const delClass = (id) => {
  return request({
    url: `${perfix}/del?cid=${id}`,
    method: 'delete'
  })
}


// 查询申请记录
export const getAppPriceList = (data) => {
  return request({
    url: '/applyPrice/list',
    method: 'post',
    data
  })
}

// 添加申请
export const addAppl = (data) => {
  return request({
    url: "/applyPrice/add",
    method: 'post',
    data
  })
}

//撤销申请
export const delAppl = (id) => {
  return request({
    url: `/applyPrice/del?id=${id}`,
    method: "delete"
  })
}


// 铺导员审批 examineApply
export const examineApply = (data) => {
  return request({
    url: "/applyPrice/examineApply",
    method: "post",
    data
  })
}

// 拒接申请
export const rejectApply = (id) => {
  return request({
    url: `/applyPrice/reject?id=${id}`,
    method: "post"
  })
}

// 获取申请明细
export const getDetaliList = (params) => {
  return request({
    url: `/applyPrice/detail`,
    method: "get",
    params
  })
}



